# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-www-sms
pkgver=0.09
pkgrel=14
pkgdesc="Perl/CPAN Module WWW::SMS : A Perl framework for sending SMS messages"
arch=("any")
url="https://search.cpan.org/dist/WWW-SMS/"
license=("GPL" "PerlArtistic")
depends=(perl)
install=perl-www-sms.install
source=("https://www.cpan.org/authors/id/E/EI/EIM/WWW-SMS/WWW-SMS-$pkgver.tar.gz")
sha256sums=('01b2ec2e49a5fa8a87203ad5507abb14e83ebd824c62efaf85f6cec79529ea65')

build() {
  cd "$srcdir"/WWW-SMS-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/WWW-SMS-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
